<div data-ng-controller="paramsCarryoverCtrl">
    <div class="mt20 clearfix ng-scope ml25">
        <span  class="fl lh30 f14 c-orange">设置当前结转期间</span>
    </div>

    <div id="grid" class="table-wrap mt10 ml25" style="min-height: 200px;">
        <table width="100%">
            <thead>
            <tr>
                <th width="200">结转开始时间</th>
                <th width="200">结转结束时间</th>
                <th width="150">操作</th>
            </tr>
            </thead>
            <tbody>
            <tr ng-repeat="record in params">
                <td class="lh40" style="height: 40px">
                    <span ng-if="(record.editMode || 0)  == 0" ng-bind="record.carryover_begin_time|strdate:'yyyy-MM-dd'"></span>

                    <input ng-if="(record.editMode || 0)  == 2" type="text" required class="input-date form-control"
                           ng-model="record.carryover_begin_time" ui-date
                           format="yyyy-MM-dd" required
                           style="width: 100%" placeholder="结转开始时间">
                </td>
                <td class="lh14">
                    <span ng-if="(record.editMode || 0)  == 0" ng-bind="record.carryover_end_time|strdate:'yyyy-MM-dd'"></span>

                    <input ng-if="(record.editMode || 0)  == 2" type="text" required class="form-control input-date"
                           ng-model="record.carryover_end_time" ui-date
                           format="yyyy-MM-dd" required
                           style="width: 100%" placeholder="结转结束时间">
                </td>
                <td class="lh14">
                    <a id="btnUpdate" ng-if="(record.editMode || 0)  == 0" href="javascript:void(0)"
                       title="修改信息"
                       ng-click="editCarryoverTime(record)">修改</a>
                    <a ng-if="(record.editMode || 0)  == 2" href="javascript:void(0)"
                       title="保存信息"
                       ng-click="saveCarryoverTime(record)">保存</a>
                    <a ng-if="(record.editMode || 0)  == 2" href="javascript:void(0)"
                       title="取消"
                       ng-click="cancelCarryoverTime(record)">取消</a>
                </td>
            </tr>
            </tbody>
        </table>
    </div>

</div>